#ifndef __HELLOWORLD_SCENE_H__
#define __HELLOWORLD_SCENE_H__
#include "CCArmature.h"
#include "cocos2d.h"
#include "heronode.h"
#include "define.h"
USING_NS_CC;
USING_NS_CC_EXT;
class HelloWorld : public cocos2d::CCLayer
{
	MY_PROPERTY_READONLY(CCArray*,enemyArray,enemyArray);
public:
	HelloWorld();
	~HelloWorld();
    // Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
    virtual bool init();  
	virtual void update(float);
    // there's no 'id' in cpp, so we recommend returning the class instance pointer
    static cocos2d::CCScene* scene();
    
    // a selector callback
    void menuCloseCallback(CCObject* pSender);
	MY_PROPERTY_READONLY(CCTMXTiledMap*,tmxmap,tmxmap);
    MY_PROPERTY_READONLY(HeroNode*,armature,Hero);
    // implement the "static node()" method manually
    CREATE_FUNC(HelloWorld);
	static HelloWorld* shareHelloWord();
};

#endif // __HELLOWORLD_SCENE_H__
